package com.itheima.myenum;

public enum SpiderStatus {
    SUCCESS("成功",0),
    REJECTED("拒绝",1),
    NO_MATCH("没有匹配到脚本",2);;
    private String desc;
    private Integer code; // int

    SpiderStatus(String desc, Integer code) {
        this.desc = desc;
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public Integer getCode() {
        return code;
    }
}
